Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OSCI][CI] set-output is deprecated #5340

Merged
merged 4 commits into from
Oct 27, 2023

Conversation

vvavdiya
Copy link
Contributor

@vvavdiya vvavdiya commented Oct 20, 2023

Description

set-output command for workflows is deprecated according to Github documentation. Update done using GITHUB_OUTPUT environment files. More details here.

Issues Resolved

#5322

Screenshot

Run cypress tests

image

https://github.com/vvavdiya/OpenSearch-Dashboards/actions/runs/6574727075/job/17864788175#logs
image

Testing the changes

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Signed-off-by: Vijay Vavdiya <vijayvavdiya@gmail.com>
Signed-off-by: Vijay Vavdiya <vijayvavdiya@gmail.com>
@vvavdiya
Copy link
Contributor Author

@abbyhu2000
PR available for review. I have have replaced deprecated set-output as mentioned following guideline

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/#examples

Signed-off-by: Vijay Vavdiya <vijayvavdiya@gmail.com>
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Merging #5340 (e0b0f23) into main (e1db842) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #5340   +/-   ##
=======================================
  Coverage   66.81%   66.81%           
=======================================
  Files        3286     3286           
  Lines       63148    63148           
  Branches    10054    10054           
=======================================
  Hits        42191    42191           
  Misses      18475    18475           
  Partials     2482     2482           
Flag Coverage Δ
Linux_1 35.24% <ø> (ø)
Linux_2 55.25% <ø> (ø)
Linux_3 43.82% <ø> (ø)
Linux_4 35.34% <ø> (ø)
Windows_1 35.25% <ø> (ø)
Windows_2 55.22% <ø> (ø)
Windows_3 43.83% <ø> (ø)
Windows_4 35.34% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

joshuarrrr
joshuarrrr previously approved these changes Oct 20, 2023
Copy link
Member

@joshuarrrr joshuarrrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @vvavdiya , looks good to me, although other maintainers are more familiar with GH workflows.

CHANGELOG.md Outdated Show resolved Hide resolved
manasvinibs
manasvinibs previously approved these changes Oct 20, 2023
@willie-hung
Copy link
Contributor

LGTM too!

…f deprecated `set-output` in workflows

Co-authored-by: Josh Romero <rmerqg@amazon.com>
Signed-off-by: Vijay Vavdiya <vijayvavdiya@gmail.com>
Copy link
Contributor

@BigSamu BigSamu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Although I recommend further explaining what your solution was in the description section of PR. It seems a bit vague at least for me this:

Description
[CI] set-output is deprecated

Better would be

set-output command for workflows is deprecated according to Github documentation. Update done using GITHUB_OUTPUT environment files. More details here.

@kavilla
Copy link
Member

kavilla commented Oct 23, 2023

LGTM! Although I recommend further explaining what your solution was in the description section of PR. It seems a bit vague at least for me this:

Description [CI] set-output is deprecated

Better would be

set-output command for workflows is deprecated according to Github documentation. Update done using GITHUB_OUTPUT environment files. More details here.

<3 Thank you a lot @BigSamu. A great call out as it is important because this project utilizes GitHub but not every fork of this repo utilizes GitHub. So each commit be able to communicate it's change to users of git. Related: https://forum.opensearch.org/t/missing-commit-messages-and-changelogs/6223.

Also, thank you so much @vvavdiya! A lot less warning messages now. I see the check link action still is outputting that warning. Did we want to update that as well or would you like to do it in a follow up PR? I'm fine with this as is but if it's quick enough would be better to get it in one go

@kavilla kavilla added backport 2.x backport 2.11 ci OSCI Open Source Contributor Initiative labels Oct 23, 2023
@kavilla kavilla linked an issue Oct 23, 2023 that may be closed by this pull request
@vvavdiya
Copy link
Contributor Author

LGTM! Although I recommend further explaining what your solution was in the description section of PR. It seems a bit vague at least for me this:

Description [CI] set-output is deprecated

Better would be

set-output command for workflows is deprecated according to Github documentation. Update done using GITHUB_OUTPUT environment files. More details here.

Updated the descriptions with more explanation..

@vvavdiya
Copy link
Contributor Author

LGTM! Although I recommend further explaining what your solution was in the description section of PR. It seems a bit vague at least for me this:
Description [CI] set-output is deprecated
Better would be
set-output command for workflows is deprecated according to Github documentation. Update done using GITHUB_OUTPUT environment files. More details here.

<3 Thank you a lot @BigSamu. A great call out as it is important because this project utilizes GitHub but not every fork of this repo utilizes GitHub. So each commit be able to communicate it's change to users of git. Related: https://forum.opensearch.org/t/missing-commit-messages-and-changelogs/6223.

Also, thank you so much @vvavdiya! A lot less warning messages now. I see the check link action still is outputting that warning. Did we want to update that as well or would you like to do it in a follow up PR? I'm fine with this as is but if it's quick enough would be better to get it in one go

@kavilla Thanks for your review.
can you please help me with more details/context of the issue? so i can take it in follow up PR.

Copy link
Contributor

@BigSamu BigSamu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@CMDWillYang CMDWillYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well!

@kavilla
Copy link
Member

kavilla commented Oct 27, 2023

LGTM! Although I recommend further explaining what your solution was in the description section of PR. It seems a bit vague at least for me this:
Description [CI] set-output is deprecated
Better would be
set-output command for workflows is deprecated according to Github documentation. Update done using GITHUB_OUTPUT environment files. More details here.

<3 Thank you a lot @BigSamu. A great call out as it is important because this project utilizes GitHub but not every fork of this repo utilizes GitHub. So each commit be able to communicate it's change to users of git. Related: https://forum.opensearch.org/t/missing-commit-messages-and-changelogs/6223.
Also, thank you so much @vvavdiya! A lot less warning messages now. I see the check link action still is outputting that warning. Did we want to update that as well or would you like to do it in a follow up PR? I'm fine with this as is but if it's quick enough would be better to get it in one go

@kavilla Thanks for your review. can you please help me with more details/context of the issue? so i can take it in follow up PR.

Oh I see, I think it is related to the actual github action we are using for checking links. The action might have an available upgrade that handles this deprecation.

But that's outside this issue.

Thank you!

@kavilla kavilla merged commit 8d8de0a into opensearch-project:main Oct 27, 2023
79 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 27, 2023
set-output command for workflows is deprecated according to Github documentation. Update done using GITHUB_OUTPUT environment files. More details here:
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/#examples

Issues Resolved
#5322

* replaced set-output
* CI replaced set-output
* Updated CHANGELOG.md for #5322 [CI] Replace usage of deprecated `set-output` in workflows

Signed-off-by: Vijay Vavdiya <vijayvavdiya@gmail.com>
Co-authored-by: Josh Romero <rmerqg@amazon.com>
(cherry picked from commit 8d8de0a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 27, 2023
set-output command for workflows is deprecated according to Github documentation. Update done using GITHUB_OUTPUT environment files. More details here:
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/#examples

Issues Resolved
#5322

* replaced set-output
* CI replaced set-output
* Updated CHANGELOG.md for #5322 [CI] Replace usage of deprecated `set-output` in workflows

Signed-off-by: Vijay Vavdiya <vijayvavdiya@gmail.com>
Co-authored-by: Josh Romero <rmerqg@amazon.com>
(cherry picked from commit 8d8de0a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
joshuarrrr pushed a commit that referenced this pull request Nov 7, 2023
set-output command for workflows is deprecated according to Github documentation. Update done using GITHUB_OUTPUT environment files. More details here:
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/#examples

Issues Resolved
#5322

* replaced set-output
* CI replaced set-output
* Updated CHANGELOG.md for #5322 [CI] Replace usage of deprecated `set-output` in workflows

Signed-off-by: Vijay Vavdiya <vijayvavdiya@gmail.com>
Co-authored-by: Josh Romero <rmerqg@amazon.com>
(cherry picked from commit 8d8de0a)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] set-output is deprecated
7 participants